--
-- Created by IntelliJ IDEA.
-- User: liuxinyu
-- Date: 2017/5/12
-- Time: 17:11
-- To change this template use File | Settings | File Templates.
--


-- define a function
function fibonacci(a)
    if a < 2 then return 1 end
    return fibonacci(a - 2) + fibonacci(a-1)
end

-- call a function with an argument
fibonacci(5)

